package com.cnap.model.progress;

import com.cnap.model.file.PatchStatusRes;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * 进度条展示类
 *
 * @author xc
 **/
public class ProgressVO {
    /**
     * 与应用id相同
     */
    private String id;
    // stage
    private String stage;
    // 分片状态
    @JsonProperty(value = "patchStatus")
    private List<PatchStatusRes> patchStatus;
    // 百分比
    private int percent;
    // 异常
    private String exception;

    /**
     * id
     *
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * set
     *
     * @param id id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * stage
     *
     * @return stage
     */
    public String getStage() {
        return stage;
    }

    /**
     * stage
     *
     * @param stage stage
     */
    public void setStage(String stage) {
        this.stage = stage;
    }

    /**
     * status
     *
     * @return status
     */
    public List<PatchStatusRes> getPatchStatus() {
        return patchStatus;
    }

    /**
     * set
     *
     * @param patchStatus status
     */
    public void setPatchStatus(List<PatchStatusRes> patchStatus) {
        this.patchStatus = patchStatus;
    }

    /**
     * percent
     *
     * @return percent
     */
    public int getPercent() {
        return percent;
    }

    /**
     * set
     *
     * @param percent percent
     */
    public void setPercent(int percent) {
        this.percent = percent;
    }

    /**
     * exp
     *
     * @return exp
     */
    public String getException() {
        return exception;
    }

    /**
     * set
     *
     * @param exception exp
     */
    public void setException(String exception) {
        this.exception = exception;
    }
}
